# 反转字符串 "hello" 并输出
# 循环输出
string='hello'
new_str=''
for str in string:
    new_str=str+new_str
print(new_str)

# 切片
word='hello'
new_str=word[::-1]
print(new_str)